{% extends '__base.tpl' %}
{% block head %}
{{ super() }}
<!-- build:css -->
<link rel="stylesheet" href="../../../public/css/other/wangEditor.css">
<link rel="stylesheet" href="../../../public/css/other/wangEditor-extend.css">
<link rel="stylesheet" type="text/css" href="../../../public/css/other/shCore.css">
<link rel="stylesheet" type="text/css" href="../../../public/css/other/shThemeRDark.css">
<link rel="stylesheet" type="text/css" href="../../../public/css/page/popup.css" />
<link rel="stylesheet" type="text/css" href="../../../public/css/page/answer.css" />
<!-- endbuild -->
{% endblock %}

    {% block middle %}
         <div id='middle' class="has-code" data-uptype="question">
             {% include '__answer_nav1.html' %}
              <div class="putQuestions" onclick="BASE.ANSWER.showPopQues(this)">
                  有什么问题想要问呢...
                  <button class="blue-change-btn common-btn">
                      <img src="../../../public/images/pen.png" class="vmiddle" alt="pen">
                      我要提问
                  </button>
              </div>
             <!------------------问列表start---------------------------------->
             <div class="listCon" id="middleListContent">
                 <ul class="content ">
                     {%if data.questionList.list.length>0%}
                     {% for item in data.questionList.list %}
                     <li>
                         {%if (item.covers|imgArrarys).length > 1 %}
                         <h3 class="title">
                             <a target="_blank" href="/{{item.id}}/answer_content.html">
                                 {{item.title|safe}}
                                 {%if item.maxGoodCount * item.unitPrice >0 %}
                                  <span class="font13 red">
                                  赏金&yen;{{item.maxGoodCount * item.unitPrice}}(剩余&yen;{{(item.maxGoodCount - item.currentGoodCount )* item.unitPrice}})
                                  </span>
                                 {%endif%}
                             </a>
                         </h3>
                         {%endif%}
                         {%if (item.covers|imgArrarys).length ==1 %}
                         <div class="listConLeft">
                             <a target="_blank" href="/{{item.id}}/answer_content.html">
                                 <img class="content-img" src="{{item.covers|imgPath}}">
                             </a>
                         </div>
                         {%elif (item.covers|imgArrarys).length > 1 %}
                         <div class="content-img-box">
                             <a target="_blank" href="/{{item.id}}/answer_content.html">
                                 {% for img in (item.covers|imgArrarys)%}
                                 <img class="content-img" src="{{img|imgPath}}">
                                 {%endfor%}
                             </a>
                         </div>
                         {%endif%}
                         <div {%if (item.covers|imgArrarys).length ==1%} class="listConRight" {%endif%}>
                             {%if (item.covers|imgArrarys).length <= 1 %}
                             <h3 class="title">
                                 <a target="_blank" href="/{{item.id}}/answer_content.html">
                                     {{item.title|safe}}
                                     {%if item.maxGoodCount * item.unitPrice >0 %}
                                     <span class="font13 red">
                                        赏金&yen;{{item.maxGoodCount * item.unitPrice}}(剩余&yen;{{(item.maxGoodCount - item.currentGoodCount )* item.unitPrice}})
                                     </span>
                                     {%endif%}
                                 </a>
                             </h3>
                             {%endif%}
                             <div class="desc">
                                 <a target="_blank" href="/{{item.memberId}}/userInfo.html">
                                     {%if item.memberId %}
                                     <img src="{{item.header|imgPath}}" class="userImg" style="margin-left: 0" />
                                     {%endif%}
                                     {{item.memberNickName}}
                                 </a>
                                 · <span class="orange">{{item.answerCount}}回答</span>
                                 ·  {{item.createDateTime|toTimeStr}}
                             </div>
                         </div>
                     </li>
                     {%endfor%}
                     {% else %}
                     <li class="no-data">
                         {% include '__no_data.html' %}
                     </li>
                     {%endif%}
                 </ul>
                 <div class="loading">正在加载中...</div>
                 <div class="nomore-data">---到底了---</div>
             </div>
             <script id="middleListContent_tpl" type="text/html">
                 <% each data as item i %>
                 <li>
                     <%if imgArrarys(item.covers).length>1 %>
                     <h3 class="title">
                         <a target="_blank" href="/<%item.id%>/answer_content.html">
                             <%item.title%>
                             <%if item.maxGoodCount * item.unitPrice>0 %>
                             <span class="red font13">
                                 赏金&yen;<%item.maxGoodCount * item.unitPrice%>(剩余&yen;<%(item.maxGoodCount - item.currentGoodCount )* item.unitPrice%>)
                             </span>
                             <%/if%>
                         </a>
                     </h3>
                     <%/if%>
                     <%if imgArrarys(item.covers).length==1 %>
                     <div class="listConLeft">
                         <a target="_blank" href="/<%item.id%>/answer_content.html">
                             <img class="content-img" src=" <%=imgPath(item.covers)%>">
                         </a>
                     </div>
                     <%/if%>
                     <%if imgArrarys(item.covers).length>1 %>
                     <div class="content-img-box">
                         <a target="_blank"  href="/<%item.id%>/answer_content.html">
                             <%each imgArrarys(item.covers) as img i%>
                             <img class="content-img" src="<%=imgPath(img)%>">
                             <%/each%>
                         </a>
                     </div>
                     <%/if%>
                     <div <%if imgArrarys(item.covers).length==1%> class="listConRight" <%/if%>>
                     <%if imgArrarys(item.covers).length<=1 %>
                     <h3 class="title">
                         <a target="_blank"  href="/<%item.id%>/answer_content.html">
                             <%item.title%>
                             <%if item.maxGoodCount * item.unitPrice>0 %>
                             <span class="red font13">
                             赏金&yen;<%item.maxGoodCount * item.unitPrice%>(剩余&yen;<%(item.maxGoodCount-item.currentGoodCount)* item.unitPrice%>)
                             </span>
                             <%/if%>
                         </a>
                     </h3>
                     <%/if%>
                     <div class="desc">
                         <a target="_blank" href="/<%item.memberId%>/userInfo.html">
                             <%if item.memberId%>
                             <img src="<%=imgPath(item.header)%>" class="userImg" style="margin-left: 0" />
                             <%/if%>
                             <%item.memberNickName%>
                         </a>
                         · <span class="orange"><%item.answerCount%>回答</span>
                         ·  <%=toTimeStr(item.createDateTime)%>
                     </div>
                     </div>
                 </li>
                 <%/each%>
             </script>
             <!------------------问列表end---------------------------------->
          </div>
    {% endblock %}

    {% block right %}
        <!--右侧板块-->
        {% include '__indexRight_memberCard.html' %}
        {% include '__indexRight_search.html' %}
        {% include '__indexRight_daren.html' %}
    {% endblock %}

{% block footer %}
    {{ super() }}
    <div class="has-code">
        {% include '__answer_popup.html' %}
    </div>
{% endblock %}

{% block script %}
    {{ super() }}
<!-- build:js -->
    <script src="../../../public/js/page/plugin/wangEditor.js"></script>
    <script src="../../../public/js/page/plugin/wangEditor-extentd.js"></script>
    <script type="text/javascript" src="../../../public/js/page/SyntaxHighlighter/XRegExp.js"></script>
    <script type="text/javascript" src="../../../public/js/page/SyntaxHighlighter/shCore.js"></script>
    <script type="text/javascript" src="../../../public/js/page/SyntaxHighlighter/shBrushCSharp.js"></script>
    <script type="text/javascript" src="../../../public/js/page/SyntaxHighlighter/shBrushCpp.js"></script>
    <script type="text/javascript" src="../../../public/js/page/SyntaxHighlighter/shBrushJava.js"></script>
    <script type="text/javascript" src="../../../public/js/page/SyntaxHighlighter/shBrushJScript.js"></script>
    <script type="text/javascript" src="../../../public/js/page/SyntaxHighlighter/shBrushPhp.js"></script>
    <script type="text/javascript" src="../../../public/js/page/SyntaxHighlighter/shBrushPython.js"></script>
    <script type="text/javascript" src="../../../public/js/page/SyntaxHighlighter/shBrushPlain.js"></script>
    <script type="text/javascript" src="../../../public/js/page/SyntaxHighlighter/shBrushSql.js"></script>
    <script>
        SyntaxHighlighter.all();
    </script>
    <script src='../../../public/js/page/common/uploadAnswer.js'></script>
    <script src='../../../public/js/page/common/popup.js'></script>
    <script src='../../../public/js/page/answer/answer.js'></script>
<!-- endbuild -->
{% endblock %}